package mirrormonkey.core.tools.entities;

import mirrormonkey.core.annotations.ClientSideConstructor;
import mirrormonkey.core.annotations.EntityHierarchy;
import mirrormonkey.framework.annotations.IdentityAware;
import mirrormonkey.framework.entity.EntityData;
import mirrormonkey.framework.entity.SyncEntity;

import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Sphere;

@EntityHierarchy
public class CreatableSphere extends Geometry implements SyncEntity {

	public EntityData data;

	@ClientSideConstructor
	public CreatableSphere() {
	}

	@ClientSideConstructor
	public CreatableSphere(@IdentityAware CreatableBox sphere) {
		super(sphere.getName(), new Sphere(20, 20, 0.5f));
		setLocalTranslation(sphere.getLocalTranslation());
	}

	@Override
	public void setData(EntityData data) {
		this.data = data;
	}

	@Override
	public EntityData getData() {
		return data;
	}

}
